const Router = require('koa-router')
const router = new Router()
const clusterController = require('../controllers/clusterController')

router.post('/registerCluster', clusterController.registerCluster)
router.post('/getCluster', clusterController.getCluster)
router.post('/updateCluster', clusterController.updateCluster)
router.post('/offlineCluster', clusterController.offlineCluster)
router.post('/deleteCluster', clusterController.deleteCluster)
router.post('/startCluster', clusterController.startCluster)
// 获取进程
router.get('/getprocessById', clusterController.getprocessById)
router.post('/reloadProcess', clusterController.reloadProcess)
module.exports = router
